package com.smh.a13WaitThread2;

import java.util.concurrent.ArrayBlockingQueue;

public class Foodile extends Thread {
    ArrayBlockingQueue<String> abq;

    public Foodile() {
    }

    public Foodile(ArrayBlockingQueue<String> abq) {
        this.abq = abq;
    }

    @Override
    public void run() {
        while (true) {
            try {
                abq.take();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
